package com.waitingresult.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 用户卡片
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "star_user_card")
public class StarUserCard {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    /**
     * 用户地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 卡片链上ID
     */
    @TableField(value = "nft_id")
    private Integer nftId;

    /**
     * 图鉴ID
     */
    @TableField(value = "card_id")
    private Integer cardId;

    /**
     * 卡套ID
     */
    @TableField(value = "suit_id")
    private Integer suitId;

    /**
     * 卡片状态 1 持有中 2 出售中 3 已转出 4 已回收
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 卡片来源 1 魔盒 2 市场
     */
    @TableField(value = "source_type")
    private Integer sourceType;

    /**
     * 来源ID
     */
    @TableField(value = "source_id")
    private String sourceId;

    /**
     * 创建时间
     */
    @TableField(value = "ctime")
    private Date ctime;

    /**
     * 更新时间
     */
    @TableField(value = "mtime")
    private Date mtime;

    /**
     * äº¤æ˜“ID
     */
    @TableField(value = "txid")
    private String txid;

    /**
     * 卡片类型
     */
    @TableField(value = "card_type")
    private Integer cardType;

    public static final String COL_ID = "id";

    public static final String COL_ADDRESS = "address";

    public static final String COL_NFT_ID = "nft_id";

    public static final String COL_CARD_ID = "card_id";

    public static final String COL_SUIT_ID = "suit_id";

    public static final String COL_STATUS = "status";

    public static final String COL_SOURCE_TYPE = "source_type";

    public static final String COL_SOURCE_ID = "source_id";

    public static final String COL_CTIME = "ctime";

    public static final String COL_MTIME = "mtime";

    public static final String COL_TXID = "txid";

    public static final String COL_CARD_TYPE = "card_type";
}